const mongoose = require("mongoose");
const schema = new mongoose.Schema({
  nickName: { type: String, default: "阿臻" },
  avatarUrl: { type: String, default: "https://wx.qlogo.cn/mmopen/vi_32/I8icCQSata9EkXiafQOVr7Xh5PqOhBff0HxRXEQSLp1JUAYp91jiczHvDW8Ez0u72fIlI1rPTmlyGDLeokrfhO3TQ/132" },
  gender: { type: Number, default: 1 },
  city: { type: String, default: "商丘" },
  province: { type: String, default: "河南" },
  country: { type: String, default: "中国" },
  language: { type: String, default: "汉语" },
  time: { type: String, required: true },
  openId: { type: String },
  background: { type: String, default: "https://cdn.azhen.work/bg.jpg" }
})

module.exports = mongoose.model("User", schema)


